package com.hitqz.robot.api.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测设备
 */
@TableName(value = "patrol_result")
@Data
public class PatrolResultEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @NotNull(message = "工单id不能为空")
    private Integer ticketsId;
    @NotNull(message = "工单任务id不能为空")
    private Integer ticketsTaskId;

    private String roomName;

    private String devName;

    private String itemName;

    private Integer itemId;

    private Integer patrolObjectId;

    private Date checkTime;

    private Date createTime;

    private String showValue;

    private String convertValue;

    private String visionResult;

    private String normalValue;

    private String mediaUrl;

    private String visionMediaUrl;

    private Integer status;

    private Integer uploadStatus;
    /**
     * 0-未审核 1-正报 2-误报 3-无异常
     */
    private Integer auditStatus;

    private String auditor;

    private String auditRemark;

    private Date auditTime;

    private String operator;

    private String cause;


    @Schema(description="炉子名称")
    private String stoveName;
    @Schema(description="炉子状态：0-关闭 1-开启")
    private String stoveStatus;
    @Schema(description="炉子开炉时间")
    private LocalDateTime stoveStartTime;
    @Schema(description="炉子关炉时间")
    private LocalDateTime stoveEndTime;
    @Schema(description="炉子生产周期")
    private String stoveProductCycle;
    @Schema(description="炉子最后运行时间")
    private LocalDateTime stoveLastRunningTime;
    @Schema(description="炉子产品名称")
    private String stoveProductName;
    @Schema(description="炉子产品编号")
    private String stoveProductCode;
    @Schema(description="炉子导出报表类型：1-碳/碳制品(TB1800) ；2-碳/碳制品(其余化学气相沉积炉)；3-碳化硅")
    private String stoveExportType;
    @Schema(description="开炉生产序列号（每开炉都生成一个）")
    private String stoveExecNo;
}
